"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _vueRouter = _interopRequireDefault(require("vue-router"));

var _HomeContainer = _interopRequireDefault(require("./components/tabbar/HomeContainer.vue"));

var _MemberContainer = _interopRequireDefault(require("./components/tabbar/MemberContainer.vue"));

var _ShopcarContainer = _interopRequireDefault(require("./components/tabbar/ShopcarContainer.vue"));

var _SearchContainer = _interopRequireDefault(require("./components/tabbar/SearchContainer.vue"));

var _NewsList = _interopRequireDefault(require("./components/news/NewsList.vue"));

var _NewsInfo = _interopRequireDefault(require("./components/news/NewsInfo.vue"));

var _PhotoList = _interopRequireDefault(require("./components/photos/PhotoList.vue"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

//导入路由组件
var router = new _vueRouter.default({
  routes: [{
    path: '/',
    redirect: '/home'
  }, {
    path: '/home',
    component: _HomeContainer.default // 这样不可以？
    // children:[
    //     {
    //         path:'newsList',
    //         component:NewsList,
    //     }
    // ]

  }, {
    path: '/member',
    component: _MemberContainer.default
  }, {
    path: '/shopcar',
    component: _ShopcarContainer.default
  }, {
    path: '/search',
    component: _SearchContainer.default
  }, {
    path: '/home/newsList',
    component: _NewsList.default
  }, {
    path: '/home/newsList/:id',
    component: _NewsInfo.default
  }, {
    path: '/home/photoList',
    component: _PhotoList.default
  }],
  linkActiveClass: 'mui-active' // 覆盖默认的link-active-class 类

}); // 将路由对象暴露出去

var _default = router;
exports.default = _default;